<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>练习1</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
    <div id="aaa">
        <h2>火车票购买</h2>
        <h2 v-if="b1">上铺：399，<a href="#">点击购买</a></h2>
        <h2 v-if="b2">中铺：299，<a href="#">点击购买</a></h2>
        <h2 v-if="b3">下铺：199，<a href="#">点击购买</a></h2>
    </div>
    <script>
        const vm = new Vue({
            el:'#aaa',
            data() {
                return {
                   b1:true,
                   b2:true,
                   b3:true,
                };
            },
        });
    </script>
</body>
</html>